﻿using Shop.Core.Share;
using Shop.Model.Dto.Hea;
using Shop.Model.View.Hea;

namespace Shop.IServices.hea
{
    public interface IHealthAppService: IAppService
    {
        /// <summary>
        /// 开始答题
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="classify"></param>
        /// <returns></returns>
        Task<AppResult<StartAnswerVo>> StartAnswer(long userId, int classify = 1);

        /// <summary>
        /// 提交答题
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<long> UserAnswer(UserAnswerParaDto input);

        /// <summary>
        /// 获取报告
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<HealthReportVo> GetHealthUserExam(long id);
    }
}